﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace TSVNAddin.Core
{
	public class FolderBrowserDialogAdapter
	{
		public virtual string ShowDialog()
		{
			using (FolderBrowserDialog dlg = new FolderBrowserDialog())
			{
				var result = dlg.ShowDialog();

				if (result != DialogResult.OK)
					return string.Empty;

				return dlg.SelectedPath;
			}
		}
	}
}
